<template>
  <div class="dashboard-container">
    <div class="dashboard-table cardBg">
      <energy-table />
    </div>
    <div class="dashboard-chart">
      <div class="dayChart cardBg">
         <div class="chart-title">
            <div class="el-icon-caret-right"></div>当日逐时趋势
          </div>
          <div class="chart-content">
            <line-chart-day />
          </div>
        
      </div>
      <div class="monthChart cardBg">
        <div class="chart-title">
            <div class="el-icon-caret-right"></div>当月逐日趋势
          </div>
          <div class="chart-content">
             <line-chart-month />
          </div>
      </div>
    </div>
  </div>
</template>

<script>
import LineChartDay from "./components/LineChartDay";
import LineChartMonth from "./components/LineChartMonth";
import EnergyTable from "./components/EnergyTable";

export default {
  name: "BuildingEnergy",
  components: {
    LineChartDay,
    LineChartMonth,
    EnergyTable
  }
};
</script>

<style lang="scss" scoped>
.dashboard-container {
  margin: 20px;
  height: calc(100vh - 90px);
  .dashboard-table {
    width: 100%;
    height: 50%;
    padding: 10px;
  }
  .dashboard-chart {
    display: flex;
    width: 100%;
    height: 50%;
    .dayChart {
      height: 100%;
      width: 50%;
      padding: 10px;
    }
    .monthChart {
      height: 100%;
      width: 50%;
      padding: 10px;
    }
  }
  .cardBg {
    color: #666;
    background: #fff;
    border-style: solid;
    border-color: black;
    border-width: 3px;
    box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
  }
  .chart-title {
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  border-bottom: 1px #efefef solid;
  }
  .chart-content {
    height: calc(100% - 25px);
  }
}
</style>
